package org.dromara.xyyw.service;

import org.dromara.xyyw.domain.XyywShop;
import org.dromara.xyyw.domain.bo.XyywShopBo;
import org.dromara.xyyw.domain.query.XyywShopQuery;
import org.dromara.xyyw.domain.vo.XyywShopVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 商铺Service接口
 *
 * @author yf
 * @date 2024-05-29
 */
public interface IXyywShopService extends IService<XyywShop> {

    /**
     * 查询商铺
     *
     * @param shopId 主键
     * @return XyywShopVo
     */
    XyywShopVo queryById(Integer shopId);

    /**
     * 查询商铺列表
     *
     * @param query 查询对象
     * @return XyywShopVo
     */
    TableDataInfo<XyywShopVo> queryPageList(XyywShopQuery query);

    /**
     * 查询商铺列表
     *
     * @param query 查询对象
     * @return XyywShopVo
     */
    List<XyywShopVo> queryList(XyywShopQuery query);

    /**
     * 新增商铺
     *
     * @param bo 商铺新增业务对象
     * @return Boolean
     */
    Boolean insertByBo(XyywShopBo bo);

    /**
     * 修改商铺
     *
     * @param bo 商铺编辑业务对象
     * @return Boolean
     */
    Boolean updateByBo(XyywShopBo bo);

    /**
     * 校验并批量删除商铺信息
     *
     * @param ids 主键集合
     * @return Boolean
     */
    Boolean deleteWithValidByIds(Collection<Integer> ids);
}
